import { request } from '@ruifox-cms/utils'

// 获取站点列表
export function getWebStation(params) {
    return request({
        url: '/station/api/site/selectAll',
        method: 'get',
        params
    })
}
// 获取用户可查看的站点
export function getSiteSelf(params) {
    return request({
        url: '/station/api/site/selectSelf',
        method: 'get',
        params
    })
}
// 添加站点
export function insertSite(data) {
    return request({
        url: '/station/api/site/insert',
        method: 'post',
        data
    })
}
// 更新站点
export function updateSite(data) {
    return request({
        url: '/station/api/site/update',
        method: 'post',
        data
    })
}
// 更新站点状态
export function updateSiteState(data) {
    return request({
        url: '/station/api/site/updateState',
        method: 'post',
        data
    })
}
// 删除站点
export function deleteSite(data) {
    return request({
        url: '/station/api/site/delete',
        method: 'post',
        data
    })
}
// 批量删除站点
export function batchDeleteSite(data) {
    return request({
        url: '/station/api/site/deleteList',
        method: 'post',
        data
    })
}
// 站点变灰
export function siteAsh(data) {
    return request({
        url: '/station/api/site/ash',
        method: 'post',
        data
    })
}
// 站点变灰
export function siteAshRecover(data) {
    return request({
        url: '/station/api/site/recover',
        method: 'post',
        data
    })
}